<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" href="mm_lodging1.css" type="text/css" />
    <title>Create Marker v1.0</title>

<style type="text/css">
	<!--
	body {
		background-color: #0099CC;
	}
	.style2 {font-family: Arial, Helvetica, sans-serif}
	.style3 {
		font-family: Verdana, Arial, Helvetica, sans-serif;
		color: #000000;
		font-weight: bold;
	}
	.style5 {font-family: Arial, Helvetica, sans-serif; font-size: 12px; }
	-->
</style>
</head>

<body>
    <h1 align="center" class="pageName style3">
    	<strong>Event Created</strong><img src="Imagenes/login2.png" width="32" height="28" />
    </h1>

	<?php
		$name= $_POST["name"];
		$KindOfEvent= $_POST["KindOfEvent"];
		$orderdate= $_POST["orderdate"];
		$hour= $_POST["hour"];
		$minute= $_POST["minute"];
		$moreinfo= $_POST["moreinfo"];
		$link= $_POST["link"];
		$place= $_POST["place"];
	
		include "Global.php";
		$connection = DBConnect();
	
		// MySQL time convertion
		$string_time = "$hour:$minute:00";
		
		$query="insert into events (name , KindOfEvent , Date , Time , MoreInfo, Link, Place) values ('$name', '$KindOfEvent', '$orderdate', '$string_time', '$moreinfo', '$link', $place)";
		
		mysql_query($query) or die ('\n error en query ' . mysql_error());
		
		DBCLose($connection);
	?>	
	
    <form id="form1" name="form1" action="createEvent.php" target="mainFrame">
    <div align="center">
        <br />
        <input name="Ok" type="submit" value="Ok" class="subHeader" />
    </div>
    </form>
   

</body>
</html>
